package com.spring.service.content;

import java.util.List;

import com.spring.domain.Content;
import com.spring.domain.File;
import com.spring.domain.User;
import com.spring.domain.vo.ImgContent;

public interface ContentDao {
	public List<Content> 	getContents();
	public List<Content> getContentsByType(int id);
	public int 				insertContent(Content content);
	public void 			deleteContent(List<Content> contents);
	public void				updateContent(Content content);
	public List<Content>	selectByMail(Content content);
	public Content 			selectById(int id);
	
	//tabella relazione con utenti
	public List<User>		getUsersRelated(int contentId);
	public void				insertUserRelation(List<User> users,int idContent);
	public void	 			deleteUserRelation(List<User> users,int idContent) ;
	
	//tabella relazione con immagini
	public List<ImgContent> getImgRelated(int contentId);
	public List<ImgContent> getImg();
	public void				insertImgRelation(List<File> files,int idContent);
	public void	 			deleteImageRelation(List<File> files,int idContent) ;
	
	//tabella relazione con file
	public List<File> getFileRelated(int contentId);
	public List<File> getFile();
	public void				insertDocumentRelation(List<File> files,int idContent);
	public void	 			deleteDocumentRelation(List<File> files,int idContent) ;
	
	//tabella relazione gallery
	public List<Content> 	getGalleriesRelated(int contentId);
	public void				insertGalleryRelation(List<Content> galleries,int idContent);
	public void	 			deleteGalleryRelation(List<Content> galleries,int idContent);
	
}
